﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 表白程序
{
    public partial class Form1 : Form
    {
        int i;

        public Form1()
        {
            InitializeComponent();
            i = 0;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textlabel.Visible = !textlabel.Visible;
            textlabel.Visible = !textlabel.Visible;
            if(i == 0)
            {
                textlabel.Text = "我喜欢你很久了";
                i++;
            }
            else if(i == 1) 
            {
                textlabel.Text = "做我女朋友好吗";
                i++;
            }
            else if (i == 2)
            {
                textlabel.Text = "一起学习，一起奋斗";
                i++;
            }
            else if(i == 3)
            {
                textlabel.Text = "你逛街，我买单";
                i++;
            }
            else if (i == 4)
            {
                textlabel.Text = "我说的都是真的";
                i++;
            }
            else if (i==5)
            {
                textlabel.Text = "真的真的";
                i++;
            }
            else if (i == 6)
            {
                //textlabel.Text = "愿意做我女朋友吗？";
                //textlabel.TextAlign = ContentAlignment.TopLeft;
                //button1.Visible = false;
                Form2 form2 = new Form2();
                this.Visible = false;
                form2.ShowDialog();
            }
        }
    }
}
